package com.promis.widget.mediapicker.manager;

import com.promis.widget.mediapicker.entity.ImageParcelable;

import java.util.List;

/**
 * Created by jidanbo on 2018/3/26.
 */

public class ImagePickerManager {

    private static ImagePickerManager manager;

    private ImagePickerManager() {}

    public synchronized static ImagePickerManager getInstance() {
        if (manager == null) {
            manager = new ImagePickerManager();
        }
        return manager;
    }

    private int maxFileSize = 188743680;

    private int maxFileCount = 40;

    private List<ImageParcelable> filterImageList;

    private ImagePickerListener imagePickerListener;

    public int getMaxFileSize() {
        return maxFileSize;
    }

    public void setMaxFileSize(int maxFileSize) {
        this.maxFileSize = maxFileSize;
    }

    public int getMaxFileCount() {
        return maxFileCount;
    }

    public void setMaxFileCount(int maxFileCount) {
        this.maxFileCount = maxFileCount;
    }

    public List<ImageParcelable> getFilterImageList() {
        return filterImageList;
    }

    public void setFilterImageList(List<ImageParcelable> filterImageList) {
        this.filterImageList = filterImageList;
    }

    public ImagePickerListener getImagePickerListener() {
        return imagePickerListener;
    }

    public void setImagePickerListener(ImagePickerListener imagePickerListener) {
        this.imagePickerListener = imagePickerListener;
    }
}
